﻿
using Git.Framework.ORM;
using Git.Storage.Entity.OutStorage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Git.Storage.Provider.OutStorage
{
    public partial class OutStoDetailProvider : DataFactory
    {
        ////private readonly Log log = Log.Instance(typeof(OutStoDetailProvider));
        public OutStoDetailProvider() { }

        /// <summary>
        /// 根据单号
        /// </summary>
        /// <param name="OrderNum"></param>
        /// <returns></returns>
        public OutStoDetailEntity GetSingleByOrderNum(string OrderNum)
        {
            OutStoDetailEntity entity = new OutStoDetailEntity();
            entity.IncludeAll();
            entity.Where(a => a.OrderNum == OrderNum);
            entity = this.OutStoDetail.GetSingle(entity);
            return entity;
        }
    }
}
